/*
 * Keyboard.h
 *
 *  Created on: 2019年3月28日
 *      Author: westl
 */

#ifndef KEYBOARD_H_
#define KEYBOARD_H_

#include <linux/uinput.h>
#include <linux/input.h>

class Keyboard
{
private:
	struct uinput_user_dev uinput_dev;
	int uinput_fd;
	int creat_user_uinput(void);

public:
	Keyboard();
	int keyboard_init();
	int report_key(unsigned int type, unsigned int keycode, unsigned int value);
	virtual ~Keyboard();
};

#endif /* KEYBOARD_H_ */
